//
//  CHWidgetInitProtocol.swift
//  Checked
//
//  Created by Shinolr on 1/9/19.
//  Copyright © 2019 shinolr_go. All rights reserved.
//

import Foundation

protocol Declarative {}

extension Declarative where Self: NSObject {
    init(configure: (Self) -> Void) {
        self.init()
        configure(self)
    }
}

extension NSObject: Declarative {}
